package com.tansuo365.test1.service.otherservice.impl;

import com.tansuo365.test1.bean.InfoData;
import com.tansuo365.test1.bean.otherbean.ShengouDetails;
import com.tansuo365.test1.mapper.othermapper.ShengouDetailsMapper;
import com.tansuo365.test1.service.otherservice.ShengouDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ShengouDetailsServiceImpl implements ShengouDetailsService {

    @Resource
    private ShengouDetailsMapper shengouDetailsMapper;

    @Override
    public List<ShengouDetails> listShengouDetailsByZongId(Integer zongzhangid) {
        return shengouDetailsMapper.listShengouDetailsByZongId(zongzhangid);
    }

    @Override
    public List<ShengouDetails> listShengouDetailsShouruByZongId(Integer zongzhangid) {
        return shengouDetailsMapper.listShengouDetailsShouruByZongId(zongzhangid);
    }

    @Override
    public List<ShengouDetails> listShengouDetailsWithDaohuoIfNotFull(Integer id) {
        return shengouDetailsMapper.listShengouDetailsWithDaohuoIfNotAllBuy(id);
    }

    @Override
    public List<InfoData> listShengouInfoDataDetailsByZongId(Integer zongzhangid) {
        return shengouDetailsMapper.listShengouInfoDataDetailsByZongId(zongzhangid);
    }

    @Override
    public List<ShengouDetails> listShengouDetailsSelective(ShengouDetails shengouDetails) {
        return shengouDetailsMapper.listShengouDetailsSelective(shengouDetails);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return shengouDetailsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int deleteByZongId(Integer zongzhangid) {
        return shengouDetailsMapper.deleteByZongId(zongzhangid);
    }

    @Override
    public int deleteByZongIdArr(Integer[] ids) {
        return shengouDetailsMapper.deleteByZongIdArr(ids);
    }

    @Override
    public int insertSelective(ShengouDetails shengouDetails) {
        return shengouDetailsMapper.insertSelective(shengouDetails);
    }

    @Override
    public ShengouDetails selectByPrimaryKey(Integer id) {
        return shengouDetailsMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ShengouDetails shengouDetails) {
        return shengouDetailsMapper.updateByPrimaryKeySelective(shengouDetails);
    }
}
